UCF STIG Viewer Logo

VAMI must have resource mappings set to disable the serving of certain file types.


Overview

Finding ID Version Rule ID IA Controls Severity
V-256658 VCLD-70-000014 SV-256658r888496_rule Medium
Description
Resource mapping is the process of tying a particular file type to a process in the web server that can serve that type of file to a requesting client and to identify which file types are not to be delivered to a client. By not specifying which files can and which files cannot be served to a user, VAMI could deliver sensitive files.
STIG Date
VMware vSphere 7.0 VAMI Security Technical Implementation Guide 2023-02-22

Details

Check Text ( C-60333r888494_chk )
At the command prompt, run the following command:

# /opt/vmware/sbin/vami-lighttpd -p -f /opt/vmware/etc/lighttpd/lighttpd.conf 2>/dev/null|grep "url.access-deny"|sed 's: ::g'

Expected result:

url.access-deny=("~",".inc")
url.access-deny=("")

If the output does not match the expected result, this is a finding.

Note: The command must be run from a bash shell and not from a shell generated by the "appliance shell". Use the "chsh" command to change the shell for the account to "/bin/bash". Refer to KB Article 2100508 for more details:

https://kb.vmware.com/s/article/2100508
Fix Text (F-60276r888495_fix)
Navigate to and open:

/opt/vmware/etc/lighttpd/lighttpd.conf

Add or reconfigure the following value:

url.access-deny=("~",".inc")
url.access-deny=("")

Restart the service with the following command:

# vmon-cli --restart applmgmt